package com.ruoyi.flowable.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.flowable.service.IWorkOrderAssetRelService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import static com.ruoyi.common.core.domain.AjaxResult.success;

@Slf4j
@RestController
@RequestMapping("/flowable/WorkOrderAssetRel")
public class WorkOrderAssetRelController {
    @Resource
    private IWorkOrderAssetRelService workOrderAssetRelService;

    /**
     * 根据procInsId查询
     * @param procInsId
     * @return
     */
    @GetMapping
    public AjaxResult getInfo(@RequestParam("procInsId") String procInsId)
    {
        return success(workOrderAssetRelService.selectByProcInsId(procInsId));
    }
}
